package com.playmodule.vr.utils;

public class MatrixHelper
{
  public static void perspectiveM(float[] paramArrayOfFloat, float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
  {
    float f = (float)(1.0D / Math.tan((float) (3.141592653589793D * paramFloat1 / 180.0D) / 2.0D));
    paramArrayOfFloat[0] = (f / paramFloat2);
    paramArrayOfFloat[1] = 0.0F;
    paramArrayOfFloat[2] = 0.0F;
    paramArrayOfFloat[3] = 0.0F;
    paramArrayOfFloat[4] = 0.0F;
    paramArrayOfFloat[5] = f;
    paramArrayOfFloat[6] = 0.0F;
    paramArrayOfFloat[7] = 0.0F;
    paramArrayOfFloat[8] = 0.0F;
    paramArrayOfFloat[9] = 0.0F;
    paramArrayOfFloat[10] = (-((paramFloat4 + paramFloat3) / (paramFloat4 - paramFloat3)));
    paramArrayOfFloat[11] = -1.0F;
    paramArrayOfFloat[12] = 0.0F;
    paramArrayOfFloat[13] = 0.0F;
    paramArrayOfFloat[14] = (-(paramFloat3 * (2.0F * paramFloat4) / (paramFloat4 - paramFloat3)));
    paramArrayOfFloat[15] = 0.0F;
  }
}

